<?php
require_once('../lib/config.php');

$id = (int)$_GET['id'];
$msgid = trim($_GET['msgid']);

$user = new $whatsit_user_class();
$db = new $whatsit_database_class($user->getUserName());

$whatsit = $db->getWhatsit($id);

echo $whatsit->getDictionaryMessage($msgid);